package r25.character;

public class ReminderToken extends AbstractInRoomObject {
	private final ICharacter owner;

	public ReminderToken(ICharacter owner) {
		this.owner = owner;
	}

	public ICharacter getOwner() {
		return owner;
	}

	public void bringBackToOwner() throws Exception {
		moveInRoom(null);
	}

	@Override
	public String toString(boolean withRoomIn) {
		return "[ ReminderToken of " + getOwner().getName()
				+ ((withRoomIn) ? " @ " + getRoomIn() : "") + " ]";
	}

	@Override
	public String toString() {
		return toString(false);
	}
}
